#ARGV 命令行的输入数据
#引用库 require require_relative
require "date"
require_relative "grep"

pattern=Regexp.new(ARGV[0])
filename=ARGV[1] #ARGV[]为字符串数组
simple_grep(pattern,filename)
days=Date.today-Date.new(1993,2,24)
puts(days.to_i)
#ruby 3.rb C++ 3.txt